package com.feihong.txgw.json.goodsCart;

import java.util.List;

/**
 * Created by Sabirjan on 2017/8/4.
 * TXGWApp.
 * 飞宏电子
 */

public class GoodsCartParser {


    /**
     * code : 200
     * data : [{"id":"29","sku_id":"2","sku_name":"Apple iPhone 7 Plus (A1661) 128G 黑色 移动联通电信4G手机 红色 16G","status":"1","spec":"[{\"id\":\"1\",\"name\":\"颜色\",\"value\":\"红色\",\"style\":\"1\",\"img\":\"\",\"color\":\"\"},{\"id\":\"2\",\"name\":\"内存\",\"value\":\"16G\",\"style\":\"1\",\"img\":\"\",\"color\":\"\"}]","subtitle":"Apple iPhone 7 Plus (A1661) 128G 黑色 移动联通电信4G手机","sn":"NU147417692548_1","shop_price":"7000.00","number":"526","nums":"1","thumb":"http://txgwimg.djlm.wang/txgw/2016/09/18/1474177174G9187717414245d.jpg"}]
     * msg : 操作成功
     */

    private int code;
    private String msg;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 29
         * sku_id : 2
         * sku_name : Apple iPhone 7 Plus (A1661) 128G 黑色 移动联通电信4G手机 红色 16G
         * status : 1
         * spec : [{"id":"1","name":"颜色","value":"红色","style":"1","img":"","color":""},{"id":"2","name":"内存","value":"16G","style":"1","img":"","color":""}]
         * subtitle : Apple iPhone 7 Plus (A1661) 128G 黑色 移动联通电信4G手机
         * sn : NU147417692548_1
         * shop_price : 7000.00
         * number : 526
         * nums : 1
         * thumb : http://txgwimg.djlm.wang/txgw/2016/09/18/1474177174G9187717414245d.jpg
         */

        private String id;
        private String sku_id;
        private String sku_name;
        private String status;
        private String spec;
        private String subtitle;
        private String sn;
        private String shop_price;
        private String number;
        private String nums;
        private String thumb;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getSku_id() {
            return sku_id;
        }

        public void setSku_id(String sku_id) {
            this.sku_id = sku_id;
        }

        public String getSku_name() {
            return sku_name;
        }

        public void setSku_name(String sku_name) {
            this.sku_name = sku_name;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getSpec() {
            return spec;
        }

        public void setSpec(String spec) {
            this.spec = spec;
        }

        public String getSubtitle() {
            return subtitle;
        }

        public void setSubtitle(String subtitle) {
            this.subtitle = subtitle;
        }

        public String getSn() {
            return sn;
        }

        public void setSn(String sn) {
            this.sn = sn;
        }

        public String getShop_price() {
            return shop_price;
        }

        public void setShop_price(String shop_price) {
            this.shop_price = shop_price;
        }

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public String getNums() {
            return nums;
        }

        public void setNums(String nums) {
            this.nums = nums;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "id='" + id + '\'' +
                    ", sku_id='" + sku_id + '\'' +
                    ", sku_name='" + sku_name + '\'' +
                    ", status='" + status + '\'' +
                    ", spec='" + spec + '\'' +
                    ", subtitle='" + subtitle + '\'' +
                    ", sn='" + sn + '\'' +
                    ", shop_price='" + shop_price + '\'' +
                    ", number='" + number + '\'' +
                    ", nums='" + nums + '\'' +
                    ", thumb='" + thumb + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "GoodsCartParser{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
